<?php require_once('g-config/konek.php'); ?>
<?php
if($konek)
{
	
if(file_exists('install/')){
include 'install/add_table.php';
include "g-konten/data/del_install.php";
}
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}


mysql_select_db($database_konek, $konek);
$query_datanya_admin = "SELECT * FROM data_user";
$datanya_admin = mysql_query($query_datanya_admin, $konek) or die(mysql_error());
$row_datanya_admin = mysql_fetch_assoc($datanya_admin);
$totalRows_datanya_admin = mysql_num_rows($datanya_admin);

$nama_site=$row_datanya_admin['nama_site'];
$bio_site=$row_datanya_admin['bio_site'];
include "g-konten/data/date.php";
include "g-konten/data/setup.php";
$data_halaman=$row_get_data_h['id'];
include "g-template/".$row_datanya_admin['template']."/index.php";

mysql_free_result($datanya_admin);
}
?>
